# encoding = utf-8
class CreateDeals < ActiveRecord::Migration
  def self.up
    create_table :deals do |t|
      t.integer :transaction_id
      t.integer :user_id
      t.float :amount
      t.string :kind
      t.string :status

      t.timestamps
    end
    
    add_index :deals, :user_id,                :unique => false
  end

  def self.down
    drop_table :deals
  end
end
